package event.service;

import java.util.HashMap;
import java.util.List;

import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update;

import event.dao.EventDao;
import event.model.EventModel;

public class EventService {

	private EventDao eventDao;

	public EventDao getEventDao() {
		return eventDao;
	}

	public void setEventDao(EventDao eventDao) {
		this.eventDao = eventDao;
	}
	
	
	public List<EventModel> selectEvent(HashMap param) {
		
		return eventDao.selectEvent(param);
	}
	
	public int insertEvent(EventModel param){
		
		eventDao.insertEvent(param);
		return 1;
	}
	
	public int updateEvent(HashMap param){
		
		eventDao.updateEvent(param);
		return 1;
	}
	
	public int deleteEvent(HashMap param) {
		eventDao.deleteEvent(param);
		return 1;
	}
}
